/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testeGUI;

import br.pucsp.projetoesp.modeloDeDominio.Tabuleiro;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.JPanel;

/**
 *
 * @author Gil L Bueno
 */
public class PainelTabuleiro extends JPanel{

    private Tabuleiro tabuleiro;

    public PainelTabuleiro(Tabuleiro tabuleiro) {
        setPreferredSize(new Dimension(500, 500));
        this.tabuleiro = tabuleiro;
    }

    @Override
    public void paint(Graphics g){
        tabuleiro.desenhar(50, 50, g);
    }

}
